home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / GLUT / README.irix6 < prev    next >
Text File  |  1996-11-11  |  3KB  |  77 lines

  1. IRIX 6.1 and 6.2 users of GLUT,
  2.  
  3. The GLUT 3.0 source distribution permits the GLUT library
  4. implementation to be compiled in various "object styles" supported by
  5. IRIX 6.1 and IRIX 6.2.  A quick review:
  6.  
  7.   O32 is the "old" ELF 32-bit object style.  It is supported by both
  8.     IRIX 5.x and IRIX 6.x systems.
  9.  
  10.   N32 is the "new" ELF 32-bit object style.  It is support on some
  11.     platforms in IRIX 6.1 (6.2 has broader platform support for N32).
  12.     The N32 object style has a more efficient calling convention and
  13.     instruction set usage and generally improved floating point
  14.     performance, but requires R4000 and later processors (R4400, R8000,
  15.     and R10000).
  16.  
  17.   N64 is the ELF 64-bit object style providing "true 64-bit" support.
  18.     The N64 object style was introduced with IRIX 6.0.  It is supported
  19.     on R4400, R8000, and R10000 processors running a 64-bit operating
  20.     system (IRIX 6.x is for these processor types).
  21.  
  22. Typically, you can use the O32 object style and be very happy.
  23. However, if you want "true 64-bit" programs or optimal processor
  24. performance from newer high-end MIPS processors, you may want to
  25. consider compiling a N32 or N64 binary.
  26.  
  27. IRIX 6.x includes X11 & OpenGL library support for these object styles
  28. and so does GLUT, though the N32 and N64 object style verisons of the
  29. GLUT library are not built by default.  However, it is simple to build
  30. them (assuming you have the correct N32 and N64 development subsystems
  31. installed).
  32.  
  33. BUILD INSTRUCTIONS
  34. ===================
  35.  
  36. To build the N32 or N64 GLUT libraries, do the following:
  37.  
  38.   1)  Make sure you are running IRIX 6.1 or 6.2.
  39.  
  40.   2)  Make sure you have the correct compiler, X11, and OpenGL development
  41.       environment installed for the object style library version you wish
  42.       to generate.
  43.   
  44.   3)  Run "mkmkfiles.sgi" in this directory.
  45.  
  46.   4)  Make sure you have built the "lib/glut" directory.  Example:
  47.  
  48.       (cd lib/glut; make)
  49.  
  50.   5)  Change to one of the N32 or N64 GLUT library directories,
  51.       depending on what "object style" you wish to build:
  52.  
  53.       N64 (new 64-bit ABI) - "cd lib/glut.n64"
  54.       N32 (new 32-bit ABI) - "cd lib/glut.n32"
  55.  
  56.   6)  Execute "make" in the directory.
  57.  
  58. NOTE ABOUT IRIX 6.0
  59. ====================
  60. You should be able to build the GLUT 3.0 for N64 with IRIX 6.0, though I
  61. have not tested it.  N32 was not available in IRIX 6.0 however.  You
  62. may find it necessary to compile with the optimizer disable (-O0) to work
  63. around a linker bug in the original 6.0 release.  Upgrading to at
  64. least IRIX 6.1 or 6.2 is recommended.
  65.  
  66. INSTALLATION
  67. =============
  68.  
  69. If you want to install the resulting archives into the right system
  70. library directories, do the following:
  71.  
  72.      FOR N32:  cp lib/glut.n32/libglut.a /usr/lib32
  73.  
  74.      FOR N64:  cp lib/glut.n64/libglut.a /usr/lib64
  75.  
  76. - Mark Kilgard
  77.